﻿
<!--Basic Styles-->
<!--Basic Styles-->
<link href="resource/login/Css/materialdesignicons.min.css" rel="stylesheet" />
<link href="resource/login/Css/bootstrap.min.css" rel="stylesheet" />
<link href="resource/login/Css/beyond.min.css" rel="stylesheet" />
<link rel="stylesheet" href="resource/login/Css/uikit.almost-flat.min.css"/>
<link rel="stylesheet" href="resource/login/Css/login_page.min.css" />
<link rel="stylesheet" type="text/css" href="resource/login/Css/m_con.min.css"> 
<link rel="SHORTCUT ICON" href="http://www/favicon.ico"> 
<script src="resource/login/Scripts/b1.js"></script>
<link rel="stylesheet" type="text/css" href="resource/login/Css/b2.css"> 
<link href="resource/login/Picture/favicon.ico" type="image/x-icon" rel="shortcut icon" />
<script src="resource/login/Scripts/b3.js"></script>    
<style>
  body{
    color: #757575;
    /*background: url("Images/5.jpg");*/
    background-size: 100% 100%;
    
  }
  .sp-cancel, a {
    color: #757575;
    text-decoration: none;
  }
  ol {
    padding: 0 0 0 19px;
    text-align: justify;

  }
  ol li {
    list-style: circle;
    margin-bottom: 15px;
  }
  h1, h2, h3, h4, h5, h6 {
    font-weight: 300 !important;
    font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", Arial, sans-serif !important;
    margin-top: 0px;
    font-weight: normal;
    letter-spacing: 0.3rem;
    color: #757575;
  }
  h4{
    color: #aaa;
  }
  .back2:after {
    opacity: 1!important;
    color: #757575;
    content: none!important;
    font-family: "Material Icons";
  }
  .phone:hover{
    color:#757575;
  }
</style>


<div id="particles-js"></div>
<div ng-controller="SigninFormController" class="login_page_wrapper">
  <div class="md-card" id="login_card">
    <div class="md-card-content large-padding" id="login_form">
      <div class="login_heading">
        
        <img src="resource/login/Picture/login-logo.png" width="291" alt="">
      </div>
      
      <div class="uk-form-row">
        <label for="username">用户名</label>
        <input class="md-input" type="text"  ng-model="user.UserName" required  placeholder="习大大"  />
      </div>
      <div class="uk-form-row">
        <label for="password">密码</label>
        <input class="md-input" type="password" placeholder="Password"  ng-model="user.UserPassword2" required/>
      </div>

      
      <div class="uk-margin-medium-top ">
        <a href="#" id="login_help_show" class="uk-float-right">忘记密码</a>
        <span class="icheck-inline">
         <input type="checkbox" class="filled-in" id="rpwd" name='rpwd'   />
         <label for="rpwd" id="dorpwd" style="margin-top:0px;">记住密码</label> 
       </span>
     </div>
     <div class="uk-margin-top">
      <input type="hidden" name="dosubmit">
      <button   class="btn blue   waves-effect waves-light no-padding" type="submit" id="dosubmit"
      ng-click="login()" ng-disabled='form.$invalid'
      style="width:100%;" >登录</button>
    </div>
    
  </div> 
  <div class="md-card-content  uk-position-relative  large-padding" id="login_help" style="display: none; height:472px;" >
    <button type="button" class="uk-position-top-right uk-close uk-margin-right uk-margin-top back_to_login waves-effect "><i class="mdi mdi-close"><div class="x"></div></i></button>
    
    <ol>
      <li><p>我们建议您的密码最好是8位以上，并且最好是大写、小写、数字、特殊符号进行搭配设置。</p></li>
      <li><p>您的密码是加密存放在系统数据库中，只有您自己知道，我们提供的账号体系是银行级别的安全设置。</p></li>
      <li><p>系统管理员为您重置默认密码后，请您尽快修改密码。</p></li>
      <!-- <li></li> -->
    </ol>
    <p style="font-weight:bold; text-align: justify;">如果您忘记密码，请您与管理员联系，让他为您重置密码。</p>
  </div>
  
  
  
</div>




</div>   
<!--Basic Scripts-->
<!-- common functions -->
<script src="resource/login/Scripts/common.min.js"></script>
<!-- altair core functions -->
<script src="resource/login/Scripts/altair_admin_common.min.js"></script>
<!--Beyond Scripts-->
<!-- altair login page functions -->
<script src="resource/login/Scripts/login.min.js"></script>

<script type="text/javascript">
  
  'use strict';


  app.controller('SigninFormController', ['$scope', '$http', '$state', function($scope, $http, $state) {


    $scope.user = {};
    $scope.authError = null;
    $scope.login = function() {


      var loginUrl =  API_URL+"user_info?query=delflag:0,UserName:"+$scope.user.UserName+",UserPassword2:"+$scope.user.UserPassword2;
      $scope.authError = null;
      // Try to login
      $http.get(loginUrl)
      .then(function(response) {
        if ( !response ) {
          $scope.authError = 'Email or Password not right';
        }else{
          $state.go('app.dashboard-v1');
          $state.isLogin = true;
        }
      }, function(x) {
        $scope.authError = 'Server Error';
      });
    };
  }]);
</script>